# -*- coding: utf-8 -*-
"""
Created on Sat Jul 17 18:57:24 2021

@author: chibi
"""
import serial
import sys,os


with serial.Serial() as ser:
	ser.baudrate = 115200
	ser.port = 'COM7' 
	ser.open()
	while True:
		line = ser.readline()
		#ser.read(10)
		print(line)
		print(line.decode('utf-8'))
		#delay(10)
		
	#ser.write(b'hello')
